<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-1.11.1.js"></script>
    <script>
        //  入口函数
        jQuery(function () {
            var jqli = $("li");
            // console.log(jqli);
            // console.log(jqli.length);
            for (var i = 0; i < jqli.length; i++) {
                if (i % 2 === 0) {
                    //jquery对象，转换成js对象
                    jqli[i].style.backgroundColor = "red";
                } else  {
                    jqli.get(i).style.backgroundColor = "yellow";
                }
            }
        })
    </script>
</head>
<body>
<ui>
    <li>jevesonjee is ur father</li>
    <li>jevesonjee is ur father</li>
    <li>jevesonjee is ur father</li>
    <li>jevesonjee is ur father</li>
    <li>jevesonjee is ur father</li>
    <li>jevesonjee is ur father</li>
</ui>
</body>
</html>